<{include file="simple_header.tpl"}>
<div class="content">
	<div class="upload">
    	<div class="upload1">
    				<div class="upname">
                    	<h1>报告错误</h1>
                    </div>
                    <div class="uplist">
                    	<div class="uplistname"><span>图书名称<span style="color:#C30">&nbsp;</span>:</span></div>
                        <div class="upvalue">
                        	<div class="upinput" style="padding-top:5px;border:0;">《<{$book.book_name}>》</div>
                        	<input type='hidden' id='hidBookId' value='<{$book.book_id}>'>
                    	</div>  
          			</div>
                    <div class="uplist">
                    	<div class="uplistname"><span>错误类型<span style="color:#C30">&nbsp;</span>:</span></div>
                        <div class="upvalue">
                        	<div class="upinput" style="padding-top:5px;border:0;color:#C00"><{$message}></div>
                        	<input type='hidden' id='hidType' value='<{$e_type}>'>
                    	</div>  
          			</div>  
                    <div class="uplist">
                    	<div class="uplistname"><span>详细描述<span style="color:#C30">&nbsp;</span>:</span></div>
                        <div class="upvalue"><div class="upinputi">
	                        <textarea class="introtext" id='introtext' name="introtext"></textarea>
                        </div></div>
                    </div>
                    
                    <div class="uplist">
                    	<div class="uplistname"></div>
                        <div class="upvalue"><a href="javascript:void(0)" class="tijiao" id='subBtn'>点击提交</a></div>
                    </div>  
    	</div>
    </div>
    </div>
    </div>  
</div>
<script>
$(function(){
	$('#subBtn').click(function(){
		$bookId = $('#hidBookId').val();
		$eType = $('#hidType').val();
		$desn = $('#introtext').val();
		$.post('/user/errorReport',{'id':$bookId,'etype':$eType,'desn':$desn},function(data){
			if(data == 0){
				alert('非常感谢您的反馈，我们会尽快处理');
				window.location.href='/book/'+$bookId+'.html';
			}else{
				alert('网络出了问题，请稍后再试');
			}
		});
	});
});
</script>
<{include file="footer.tpl"}>
